﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace NTmdb.TestProject
{
    /// <summary>
    ///     This is a test class for TmdbMovieListStausTest and is intended
    ///     to contain all TmdbMovieListStausTest Unit Tests
    /// </summary>
    [TestClass]
    public class TmdbMovieListStausTest
    {
        /// <summary>
        ///     A test for TmdbMovieListStaus Constructor
        /// </summary>
        [TestMethod]
        public void TmdbMovieListStausConstructorTest()
        {
            var target = new TmdbMovieListStaus();
            Assert.IsNotNull( target );
        }

        /// <summary>
        ///     A test for Id
        /// </summary>
        [TestMethod]
        public void IdTest()
        {
            var target = new TmdbMovieListStaus();
            string expected = Guid.NewGuid().ToString();
            target.Id = expected;
            string actual = target.Id;
            Assert.AreEqual( expected, actual );
        }

        /// <summary>
        ///     A test for IsItemPresent
        /// </summary>
        [TestMethod]
        public void IsItemPresentTest()
        {
            var target = new TmdbMovieListStaus();
            bool expected = new Random().Next( 0, Int32.MaxValue ) % 2 == 0;
            target.IsItemPresent = expected;
            bool actual = target.IsItemPresent;
            Assert.AreEqual( expected, actual );
        }

        /// <summary>
        ///     A test for Serialize & Deserialize
        /// </summary>
        [TestMethod]
        public void SerializeDeserializeTest()
        {
            Assert.Inconclusive();
        }
    }
}